package com.jsh.erp.datasource.entities;

import lombok.Data;

import java.math.BigDecimal;

@Data
public class Account {
    private Long id;

    private String name;

    private String serialNo;

    private BigDecimal initialAmount;

    private BigDecimal currentAmount;

    private String remark;

    private Boolean isDefault;

    private Long tenantId;

    private String deleteFlag;


    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public void setSerialNo(String serialNo) {
        this.serialNo = serialNo == null ? null : serialNo.trim();
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }

    public void setDeleteFlag(String deleteFlag) {
        this.deleteFlag = deleteFlag == null ? null : deleteFlag.trim();
    }
}